package freecomm.study.notes;

import android.content.Context;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.AdapterView.OnItemClickListener;

public class MyContextMenu extends PopupWindow
{
    private ListView mListView;
    private ArrayAdapter<String> mAdapter;

    public MyContextMenu(Context context, String[] mStrings,
            OnItemClickListener mListener)
    {
        super(context);
        // TODO Auto-generated constructor stub

        mAdapter = new ArrayAdapter<String>(context,
                android.R.layout.simple_list_item_1, mStrings);
        mListView = (ListView) View.inflate(context, android.R.id.list, null);
        mListView.setAdapter(mAdapter);
        mListView.setOnItemClickListener(mListener);
        this.setContentView(mListView);
    }

}
